﻿#region COPYRIGHT© 2009-2012 Phillip Clark. All rights reserved.

// For licensing information see License.txt (MIT style licensing).

#endregion

namespace FlitBit.Cache
{
	/// <summary>
	///   Interface for managing a cache's hierarchy.
	/// </summary>
	/// <typeparam name="TKey">key type K</typeparam>
	/// <typeparam name="TRepresentation">representation type R</typeparam>
	public interface ICacheHerarchyManagement<TKey, TRepresentation>
		where TRepresentation : class
	{
		/// <summary>
		///   Links the current cache with a fallback cache.
		/// </summary>
		/// <param name="cache">a fallback cache</param>
		void LinkFallbackCache(ICache<TKey, TRepresentation> cache);
	}
}